#ifndef SERIAL_H
#define SERIAL_H

#include <QtWidgets/QMainWindow>
#include "ui_serial.h"
#include <QtSerialPort/QSerialPort>  
#include <QtSerialPort/QSerialPortInfo>

class Serial : public QMainWindow  
{  
    Q_OBJECT  
public:  
    explicit Serial(QWidget *parent = 0);  
    ~Serial();  
private slots:  
    void on_clearButton_clicked();  
    void on_sendButton_clicked();  
    void on_openButton_clicked();  
    void Read_Data();  
private:  
    Ui::SerialClass *ui;  
    QSerialPort *serial;  
};



#endif // SERIAL_H
